package cn.edu.neu.mapper;

import java.util.List;

import cn.edu.neu.model.Book;
import org.apache.ibatis.annotations.Param;

public interface BookMapper {

	int addBook(String name, String bMname, String bCname, String seat, String num, String price, String time,
                String status, String bimg, int userId,int movieId,int cinemaId);

	List<Book> findBookByName(String name);

	void updateStatusById(String bId);

	void delBook(String bId);

	List<Book> findBookByCinemaName(String bCname);

    List<Book> selectByUid(@Param("uid") int userId);

	Book selectByid(@Param("bid") String bid);

	void updateStatusByBId(@Param("bid") String bid);

	void updateZhifuByBId(@Param("bid")String bid);
}
